<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>区分IE及非IE浏览器</title>
    <script>
        window.onload = function(){
            if(!+[1,]){
                alert("This is IE!");
            }else{
                alert("No't IE!");
            }
        }
    </script>
</head>
<body>

</body>
</html>